package com.yjt.gcss.gddw.common.bean.domain;

/**
 * AbstractBtOrgBankMappingId entity provides the base persistence definition of
 * the BtOrgBankMappingId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBtOrgBankMappingId implements
		java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String orgId;
	private String txnType;
	private String tranType;
	private String txnCurrencyCd;
	private String signFlag;
	private String accBankId;

	// Constructors

	/** default constructor */
	public AbstractBtOrgBankMappingId() {
	}

	/** full constructor */
	public AbstractBtOrgBankMappingId(String orgId, String txnType,
			String tranType, String txnCurrencyCd, String signFlag,
			String accBankId) {
		this.orgId = orgId;
		this.txnType = txnType;
		this.tranType = tranType;
		this.txnCurrencyCd = txnCurrencyCd;
		this.signFlag = signFlag;
		this.accBankId = accBankId;
	}

	// Property accessors

	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getTxnType() {
		return this.txnType;
	}

	public void setTxnType(String txnType) {
		this.txnType = txnType;
	}

	public String getTranType() {
		return this.tranType;
	}

	public void setTranType(String tranType) {
		this.tranType = tranType;
	}

	public String getTxnCurrencyCd() {
		return this.txnCurrencyCd;
	}

	public void setTxnCurrencyCd(String txnCurrencyCd) {
		this.txnCurrencyCd = txnCurrencyCd;
	}

	public String getSignFlag() {
		return this.signFlag;
	}

	public void setSignFlag(String signFlag) {
		this.signFlag = signFlag;
	}

	public String getAccBankId() {
		return this.accBankId;
	}

	public void setAccBankId(String accBankId) {
		this.accBankId = accBankId;
	}

	@Override
	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBtOrgBankMappingId))
			return false;
		AbstractBtOrgBankMappingId castOther = (AbstractBtOrgBankMappingId) other;

		return ((this.getOrgId() == castOther.getOrgId()) || (this.getOrgId() != null
				&& castOther.getOrgId() != null && this.getOrgId().equals(
				castOther.getOrgId())))
				&& ((this.getTxnType() == castOther.getTxnType()) || (this
						.getTxnType() != null && castOther.getTxnType() != null && this
						.getTxnType().equals(castOther.getTxnType())))
				&& ((this.getTranType() == castOther.getTranType()) || (this
						.getTranType() != null
						&& castOther.getTranType() != null && this
						.getTranType().equals(castOther.getTranType())))
				&& ((this.getTxnCurrencyCd() == castOther.getTxnCurrencyCd()) || (this
						.getTxnCurrencyCd() != null
						&& castOther.getTxnCurrencyCd() != null && this
						.getTxnCurrencyCd()
						.equals(castOther.getTxnCurrencyCd())))
				&& ((this.getSignFlag() == castOther.getSignFlag()) || (this
						.getSignFlag() != null
						&& castOther.getSignFlag() != null && this
						.getSignFlag().equals(castOther.getSignFlag())))
				&& ((this.getAccBankId() == castOther.getAccBankId()) || (this
						.getAccBankId() != null
						&& castOther.getAccBankId() != null && this
						.getAccBankId().equals(castOther.getAccBankId())));
	}

	@Override
	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrgId() == null ? 0 : this.getOrgId().hashCode());
		result = 37 * result
				+ (getTxnType() == null ? 0 : this.getTxnType().hashCode());
		result = 37 * result
				+ (getTranType() == null ? 0 : this.getTranType().hashCode());
		result = 37
				* result
				+ (getTxnCurrencyCd() == null ? 0 : this.getTxnCurrencyCd()
						.hashCode());
		result = 37 * result
				+ (getSignFlag() == null ? 0 : this.getSignFlag().hashCode());
		result = 37 * result
				+ (getAccBankId() == null ? 0 : this.getAccBankId().hashCode());
		return result;
	}

}